package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {
    public PageResult findPage(QueryPageBean queryPageBean);

    public void add(Role role, Integer[] permissionIds, Integer[] menuIds);

    public List<Role> findAll();

    public void delete(Integer id);

    Role findById(int id);

    List<Integer> findPermissionByRoleId(int id);

    List<Integer> findMenuByRoleId(int id);

    void edit(Role role, Integer[] permissionIds, Integer[] menuIds);

    List<Integer> findRoleById(int id);

    List<Integer> findRoleByMenuId(String menuId);
}
